/*
 * ElementInfoPanel.hpp
 *
 *  Created on: 27-12-2010
 *      Author: Przemek
 */

#pragma once

#include "SingleElementInfoPanel.hpp"
#include "gui/Container.hpp"
#include "gui/Label.hpp"
#include "listener/SelectElementMouseListener.hpp"
#include "pch.hpp"

/*
 * Panel which displays selected element name and its info panel.
 */
class ElementInfoPanel: public Container
{
	private:
		static const std::string NONE_SELECTED;
		Label* nameLabel;
		Element* selected;
		SingleElementInfoPanel* elementInfoPanel;
		float elementInfoPanelY;
		float parentWidth;

	public:
		ElementInfoPanel(const Dimension& parentSize);
		void updateFromListener(SelectElementMouseListener* listener);
};

